package com.sy.mapper;

import com.sy.dto.LeaveSimpleMessage;
import com.sy.dto.LeaveSimpleMessageTeacher;
import com.sy.entity.LeaveMessageDetail;
import com.sy.vo.NewLeavenWordsVo;
import com.sy.vo.NewReplyWordsVo;
import com.sy.vo.SearchLeaWordByKeyWordsVo;
import com.sy.vo.SearchTeaLeaWordByKeyVo;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface NewLeavenWordsMapper {
   /**
    * 添加新留言
    * @param newLeavenWordsVo
    * @return
    */
   boolean addNewLeavenWords(NewLeavenWordsVo newLeavenWordsVo);

   /**
    * 查找所有留言
    * @param vo
    * @return
    */

   List<LeaveSimpleMessage> getAllLeaveMessageByStuId(SearchLeaWordByKeyWordsVo vo);

   /**
    * 获得老师所有的留言
    * @param vo
    * @return
    */
   List<LeaveSimpleMessageTeacher> getAllLeaveMessageByTeaId(SearchTeaLeaWordByKeyVo vo);
   /**
    * 删除留言
    * @param id
    * @return
    */
   boolean deleteLeavenWordById(String id);

   /**
    * 添加新回复
    * @param newReplyWordsVo
    * @return
    */
   boolean addNewReplyWords(NewReplyWordsVo newReplyWordsVo);

   /**
    * 获取所有的回复信息
    * @param id
    * @return
    */
   List<LeaveMessageDetail> getAllReplyMessageById(String id);

   /**
    * 删除回复信息
    * @param id
    * @return
    */
   boolean deleteReplyWordById(Integer id);
}
